A = 1050000  # Capital.
interest_rate = 0.0465 / 12  # Interest rate.
N = 10 * 12
k = 20
D = 3000


def get_dengebenjin(n):
    x = A / N + (1 - (n - 1) / N) * A * interest_rate
    return x


def get_dengebenxi(n):
    x = A * interest_rate * (1 + interest_rate)**N / \
        ((1 + interest_rate)**N - 1)
    return x


def get_dengedizeng(n):
    x = A / N + (n - (N + 1) / 2) * k + (A - (A / N - (N + 1) /
                                              2 * k) * n - k * n * (n + 1) / 2) * interest_rate
    return x


def get_dengeniandizeng(n):
    n = int((n - 1) / 12 + 1)
    rate = interest_rate * 12
    year = N / 12
    x = (rate**2*A-D*((1+rate)**year-rate*year-1)) / \
        (rate**2*year+rate*((1+rate)**year-rate*year-1))+A*rate+D*(n-1)
    return x


for i in range(1, N + 1):
    print(get_dengebenxi(i))
